package com.hyts.xmlparser.constant;

import com.thoughtworks.xstream.io.AbstractDriver;
import com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver;
import com.thoughtworks.xstream.io.json.JsonHierarchicalStreamDriver;
import com.thoughtworks.xstream.io.xml.*;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created by Administrator on 2019/7/18.
 * Package:com.hyts.xmlparser.constant
 */
@AllArgsConstructor
public enum XmlEngineType {

    DEFAULT(XppDriver.class),
    DOM(DomDriver.class),
    SAX(StaxDriver.class),
    JDOM(JDomDriver.class),
    JDOM2(JDom2Driver.class),
    DOM4J(Dom4JDriver.class),
    JSON_JETTISON(JettisonMappedXmlDriver.class),
    JSON_HIT(JsonHierarchicalStreamDriver.class);

    @Getter
    private Class<? extends AbstractDriver> engineDriverClass;
}
